<div class="full vpad_10 last fixed">
        <? if(!empty($this->auctions)) { 
        echo $this->partial('partials/_sectionTitle.phtml', 
            array('title'=> 'Nierozpoczęte aukcje')); ?>
    
    <table class="datalist" width="100%">
   <thead>
      <tr>
         <th  class="c1">ID</th>
         <th  class="c2" scope="col">Nazwa</th>
         <th  class="c3" scope="col">Edytuj</th>
         <th  class="c4" scope="col">Start</th>
        
      </tr>
   </thead>
   <tfoot>
      <tr>
         <th>&nbsp;</th>
         <td>&nbsp;</td>
         <td>&nbsp;</td>
         <td>&nbsp;</td>
      </tr>
   </tfoot>
   <tbody>
       <? foreach($this->auctions as $auction) {?>
      <tr>     
          <td><? echo $auction->getAuction_id(); ?></td>
         <td>
             <a href ="<?php echo $this->url(
                     array('controller'=>'auctions',
                         'action'=>'details',
                         'id'=>$auction->getAuction_id()),
                     null,
                     true); 
             ?>"><? echo$auction->getTitle(); ?></a>
         </td>
         <td>
             <a href="<?php echo $this->url(
                     array('controller'=>'auctions',
                         'action'=>'edit',
                         'id'=>$auction->getAuction_id()),
                     null,
                     true); 
             ?>">
                Edytuj
             </a></td>
         <td>
             <a href="<?php echo $this->url(
                     array('controller'=>'auctions',
                         'action'=>'start',
                         'id'=>$auction->getAuction_id()),
                     null,
                     true); 
             ?>">
                 Start
             </a>
         </td>
      </tr> 
      <? } ?>
   </tbody>
</table>  
         
        <? } 
            echo $this->partial('partials/_sectionTitle.phtml', 
                array('title'=> 'Nowa aukcja')); ?>
     
    <a href="<?php echo $this->url(
                array('controller' => 'auctions',
                    'action' => 'new'), 
                null, 
                true) ?>"
                class ="styled_button grey">
        Nowa aukcja
    </a>

     
</div>